/*
 * Copyright 2020-2025 the original author or authors.
 * You cannot use this file unless authorized by the author.
 */
package org.ipig.messaging;

import org.ipig.commons.service.Service;

/**
 * 生产者服务
 *
 * @author <a href="mailto:comchnts@163.com">chinats</a>
 * @version $$Id: ProducerService.java 3 2020-01-21 09:36:33Z ts <comchnts@163.com> $$
 * @since 1.0
 */
public interface ProducerService<Producer, Message, Result> extends Service {

    /**
     * getProducer
     *
     * @return
     */
    public Producer getProducer();

    /**
     * send
     *
     * @param message
     * @return
     */
    public Result send(Message message);
}